MkBlockQuote
:fa-brands-github: Show source on GitHub
BlockQuote node.¶
Bases: MkContainer
| Name | Children | Inherits |
|---|---|---|
| MkContainer mknodes.basenodes.mkcontainer A node containing other MkNodes. |
graph TD
1647548858["mkblockquote.MkBlockQuote"]
835538629["mkcontainer.MkContainer"]
1956333208["mkcontainer.MkContainerBase"]
1359323199["mknode.MkNode"]
2751680898["builtins.object"]
835538629 --> 1647548858
1956333208 --> 835538629
1359323199 --> 1956333208
2751680898 --> 1359323199
/home/runner/work/mknodes/mknodes/src/mknodes/basenodes/mkblockquote/metadata.toml
[metadata]
icon = "mdi:format-quote-open"
name = "MkBlockQuote"
[examples.regular]
title = "Regular"
jinja = """
{{ "Some text" | MkBlockQuote }}
"""
[examples.nested]
title = "Nested"
description = "We can also nest blocks, they will adjust their delimiters automatically."
jinja = """
{{ "Nested!" | MkBlockQuote | MkBlockQuote }}
"""
[output.markdown]
template = """
{{ node.get_items() | join(node.block_separator) | indent(width="> ", first=True) | rstrip("\n") }}
"""
# [output.html]
# template = """
# <blockquote>
# {{ node.get_items() | join(node.block_separator) }}
# </blockquote>
# """
[output.rst]
template = """
{{ node.get_items() | join(node.block_separator) | indent(width=" ", first=True) | rstrip("\n") }}
"""